package kiwi.assist.dev.guieditor.mediator {
	import kiwi.assist.dev.guieditor.event.GUIEditorEvent;
	import kiwi.assist.dev.guieditor.view.SkinCanvasView;
	import org.robotlegs.mvcs.Mediator;


	/**
	 * 皮肤容器
	 * @author zhangming.luo
	 */
	public class SkinCanvasMediator extends Mediator {
		[Inject]
		public var view : SkinCanvasView;

		override public function onRegister() : void {
			super.onRegister();
			addContextListener(GUIEditorEvent.SKIN_SELECTION_CHANGE, handleSkinChange);
		}

		private function handleSkinChange(e : GUIEditorEvent) : void {
			view.showSkin(e.data);
		}
	}
}
